#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int i = 0;
int j = 0;
int n = 0;
int main()
{
	while (scanf("%d", &n) != -1)
	{
		for (i = 1; i <= n; i++)
		{
			for (j = 1; j <= i; j++)
			{
				printf("%d * %d = %d\t", j, i, j * i);
			}
			printf("\n");
		}
	}
	return 0;
}